package com.leifeng.demo.WindowDemo.main;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;


public class Main extends Application {

	@Override
	public void start(Stage primaryStage) throws Exception {
		Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("view/FirstView.fxml"));
		Scene scene = new Scene(root);
		primaryStage.setTitle("第一个窗口");
		primaryStage.setResizable(false);
		primaryStage.getIcons().add(new Image("image/star123.png"));
		scene.getStylesheets().add(getClass().getClassLoader().getResource("css/application.css").toExternalForm());
		primaryStage.setScene(scene);
		primaryStage.show();
	}
	
	public static void main(String[] args) {
		launch(args);
	}

}
